package com.ebt.m.data.bean;

import java.io.Serializable;
import java.util.Date;

import com.ebt.m.utils.android.EngineDataInfo;

public class EngineJAR implements Serializable {

	private int id;

	private int localVersion;

	private int serverVersion;

	private String serverUrl;

	private Date createTime;

	private Date updateTime;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getLocalVersion() {
		return localVersion;
	}

	public void setLocalVersion(int localVersion) {
		this.localVersion = localVersion;
	}

	public int getServerVersion() {
		return serverVersion;
	}

	public void setServerVersion(int serverVersion) {
		this.serverVersion = serverVersion;
	}

	public String getServerUrl() {
		return serverUrl;
	}

	public void setServerUrl(String serverUrl) {
		this.serverUrl = serverUrl;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public EngineDataInfo getEngineDataInfo() {
		EngineDataInfo dataInfo = new EngineDataInfo();
		dataInfo.engineId = id;

		dataInfo.localVersion = localVersion;
		dataInfo.serverUrl = serverUrl;
		dataInfo.serverVersion = serverVersion;
		return dataInfo;

	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
